Changed pattern for registering and logging in in security service