finished login and update pages