added mobile login, token generation and mobile api connection