issue 1253 - prevent multiple logins with same username

Resolves #1253 
The function doesn't return a value here.