fix login controller
fixed bugs
small fix