Finished authenticate_user

Finished authenticate_user for the most part
Needs to be polished a bit but works as intended