Improved login form + catching the sumbit by server