fixed background tile code
implemented login and front and back end