Add mail support and improved login page