Added functionality for login, register, and logout. Also added navbar and templates