fix Lost connection to MySQL server during query bug
add login request for locked projects