registering and log in implemented, spring added