Implement switch panel function

If user login successfully, then it will switch to registration panel.