Added access checking, edit login controller