Register user now works with Spring Security, removed lots of obsolete code