working registration form with some flaws. working image upload with some flaws while viewing images