Implemented login process and automatic name update in navigation