forgot password and message display code