Update views.py

Added code to the create function.
Modified the createUserAccount to handle accounts created for targets.
Added the addUser function to reduce repetition in createUserAccount function.