Test and implementation for authenticate account