update login.js to pull the error function
add in dashboard template file, work towards storing the logged in user in a session