fixes the routing to the home page
adding validation presence to message