factory reverted back to old code, as this would be needed for in fullstack js application
authentication got started from the backend now
bug fix for email attributes