added username functionality