adding spring.xml, login and register functionalities