Added login via server

Close #1