edit to loginView