checks for conflicts in ids or emails
switches to find_by instead of find
checks for post and categories as well
automatically sets user_id to session value
refactored authentication checks
Merge pull request #17 from cs27x/bug/conflicting_ids

Bug/conflicting ids