added login controller and simple login validation