Added log staatements in user model and changed enabled? API