Fixed bug in login process. Login is working now. Gcm registration is also working