add code for login

Added the code for login and basic utilities for my part so far