Added more server-side console.logging
Added check to prevent duplicate usernames