Moving methods to Login and Test (will be removed) controller