(Nikita) Added api for login - to be used by android app