changed the structure of the webapp and added login form