Error messages

Added some error messages and login redirect(when user is not logged in)
from the home screen.