Implemented Authenticate function. I need someone to test...