first final version

optimized form handling and login sequence