complete login controller