Added authenticate function to create account activity