moved template to main folder.  added login that checks database for user.