moved data to login controller