Clearing messages upon successful register/login.