refactored photo layout, started implementation of password protection