Added check if the user is not authorized then it is available only home page
Added validation fields on the client side