resolving conflicts
adding simple current_user function and session destroy