Go to image>new adjustment layer>brightness and contrast

And adda a border by making a new layer, pressing ctrl + a then right clicking and go to stroke and make sure its 1pixel and INSIDE