Added login/logout link
Copied the professor's code and modified it to our particulars.
Added a function to get user from database if they supply the correct credentials