Login Authentication
Updated the frontend page for login validation: Users will receive a prompt if login fails, and upon successful login, they will be redirected to the home page and the menu bar will be loaded. And Removed unnecessary imports and modified some comments.