adds login form and improves the settings