adding authentication system