generate login controller