Tests for login controller fixes #6