Put student register form in else block