Added code for Login

currently coding for error checking