Added login functionality, view, and ajax

Added login system. It is fully functional. Can register, login, and
logout.