Login Bug fixes

Logged_user field in main populated.