Updated login controller and completed login unit testing