Added logic for searching db entry match when trying to login. Made some other minor changes towords a login.
basic login works: advances to profile page if valid email/password combination is found, resets index else. Have to implement usage of the created User object now.