changed login fails from javascript alerts to bootstrap alerts