Authenticate Function Written (needs changes)

Authenticate skeleton. Still needs database access and correct table
name for hashes.