adding login changes and helper methods