Adding user edit

maked an api function to get loggedin user data