Added code to initialize the user

Still working on fleshing out the search. There is still the issue with calling the search twice.
Merge pull request #280 from Jedwondle/master

Added code to initialize the user