+ added login functionality with token retrieval and storage