Added account login

Main code rev. 1770