issue 1253 - prevent multiple logins with same username

Resolves issue #1253 
Could you please capitalise the first 'i'? Thanks!