Login form now behaves correctly