-adding final working code

Intermediate checkin.
-> Requires fine tuning
-> Error Handling should be done.
-> UI for Logged in user
-> Change the tweaked User.Loggedin Flag that I'd changed to check
name-email id panel