made username not case sensitive, not sure why the flash message isnt showing up
made alert message instead of flash