Changed login controller