Showing error message on login page & changed menu type