Added basic input validation for login controller