Added user exsistance  check, user delete method and refactored some
code