Layout login form improved.

Problem with redirect after redirect fixed.