Logout button functioning, 
if statement implemented to take care of 
picking image from library versus camera.