Added code to initialize the user

Still working on fleshing out the search. There is still the issue with calling the search twice.