Create login controller with test