finished basica authentication and tests