login & registeration working with new entity