fixed error in login register
fixed location error