fixed profile bug for newly registered users
Merge pull request #6 from shrutijalewar/login

fixed profile bug for newly registered users