changing the login structure