Added default value for user string when retrieving login data

As subject says and discussed. Please have a look.