issue 1253 - prevent multiple logins with same username

Resolves #1253 
Please add an empty line in here.