fixed login, and edit problems