Fixed issue of not being able to login using nav-bar login form. Added meaningful comments.
Added meaningful comments