After some refactoring regarding user access and security constraints, finally have some login infrastructure working. To ensure data between page refresh a new library that binds angular to the local storage was used.