I just changed the permissions of wp-admin folder to 705 which was 777 before, I dont know whats the reason behind this because 777 is a privileged mode.
I guess u misunderstood my last comment, i actually wrote that i didnt change the permissions before that and it was working fine since i uploaded the wordpress package