update the way to display messages

use django messages to display messages in reg, login and change password view