Implemented login for contacts