Update login.php

Add some better error handling with javascript alerts