Added credentials and fixed resizing bug