login controller tests