[shrikrishna] Added error messages in login, register pages and flash messages in login